package com.jiangyg.mall.order.service;

import com.jiangyg.mall.core.support.restful.Pagination;
import com.jiangyg.mall.order.dto.OrderReturnReasonDTO;
import com.jiangyg.mall.order.vo.OrderReturnReasonVO;

import java.util.List;

/**
 * 类描述：退货原因
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:14:51
 */
public interface OrderReturnReasonService {

    /**
     * 功能描述：退货原因分页查询
     *
     * @param pagination 分页参数
     * @return 返回分页信息
     */
    Pagination<OrderReturnReasonVO> selectPagination(Pagination<OrderReturnReasonVO> pagination) throws Exception;

    /**
     * 功能描述：保存或者修改退货原因
     *
     * @param dto 退货原因
     * @return 返回是否操作成功
     */
    boolean saveOrUpdate(OrderReturnReasonDTO dto) throws Exception;

    /**
     * 功能描述：根据ID获取OrderReturnReason
     *
     * @param orderReturnReasonId 退货原因ID
     * @return 返回退货原因
     */
    OrderReturnReasonVO selectById(Long orderReturnReasonId) throws Exception;

    /**
     * 功能描述：批量删除OrderReturnReason
     *
     * @param orderReturnReasonIds 要删除的ID数组
     * @return 返回是否操作成功
     */
    boolean delete(List<Long> orderReturnReasonIds);

}

